﻿@model IEnumerable<InfoLogic.Models.ProductSaleModel>
@*<form method="get" action="@Url.Action("AutoCompleter")" 
      data-otf-ajax="true" data-otf-target="#productList">

    <input type="search" name="searchTerm"   id  ="searchTerm"/>
    <input type="submit" value="Search By Name" />
    @section Scripts
     {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")
    @Styles.Render("~/Content/themes/base/css")

<script type="text/javascript">
    $(document).ready(function () {
        $('#searchTerm').autocomplete({
            source: '@Url.Action("AutoComplete")',

        });


    })
</script>*@
@*}
    
    
</form>*@

@using (Html.BeginForm())
{
      
    <p><input type="search" name="searchTerm"   id  ="searchTerm"/></p>
    <p><input type="submit" value="Search By Name" /></p>
    
    @section Scripts
     {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")
    @Styles.Render("~/Content/themes/base/css")

        <script type="text/javascript">
        $(document).ready(function () {
            $('#searchTerm').autocomplete({
                source: '@Url.Action("AutoComplete")',

            });


        })
         </script>
    
}
}

@* @section Scripts
     {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")
    @Styles.Render("~/Content/themes/base/css")

    <script type="text/javascript">
    $(document).ready(function () {
        $('#searchTerm').autocomplete({
            source: '@Url.Action("AutoComplete")',

        });


    })
     </script>*@

@Html.Partial("_Products", Model)





